home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
ant12
/
referenc.ht_
/
referenc.ht
Wrap
Text File
|
1998-02-08
|
6KB
|
177 lines
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="Description"
content="Antanna ocx Control Documentation">
<meta name="KeyWords"
content="Antanna, Control, Documentation, Visual Basic, OCX">
<meta name="GENERATOR" content="Microsoft FrontPage 2.0">
<title>Function Reference</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000EE"
vlink="#551A8B" alink="#FF0000">
<p>[<a href="index.htm">Antenna Documentation</a>]</p>
<hr>
<h2><a name="Function">Documentation</a></h2>
<blockquote>
<p>This section describes important methods and event of
Antenna.</p>
<ol>
<li><a href="#SetTargetWnd">SetTargetWnd</a></li>
<li><a href="#AddMsg">AddMsg</a></li>
<li><a href="#AddPreMsg">AddPreMsg</a></li>
<li><a href="#AddPostMsg">AddPostMsg</a></li>
<li><a href="#DestroyAll">DestroyAll</a></li>
<li><a href="#OnTrap">OnTrap</a> (Event)</li>
</ol>
<p> </p>
</blockquote>
<blockquote>
<h3><a name="SetTargetWnd">SetTargetWnd</a></h3>
<blockquote>
<table border="0" cellpadding="2" width="80%">
<tr>
<td valign="top" width="20%">Syntax:</td>
<td valign="top" width="80%">Sub
SetTargetWnd(hWnd As Long)</td>
</tr>
<tr>
<td valign="top" width="20%">Action:</td>
<td valign="top" width="80%">Sets the Target hWnd
of the control.</td>
</tr>
<tr>
<td valign="top" width="20%">Parameter:</td>
<td valign="top" width="80%">hWnd is a 32-bit
window handle.</td>
</tr>
</table>
<p><font size="2"></font> </p>
</blockquote>
<h3><a name="AddMsg">AddMsg</a></h3>
<blockquote>
<table border="0" cellpadding="2" width="80%">
<tr>
<td valign="top" width="20%">Syntax:</td>
<td valign="top" width="80%">Sub AddMsg(nMsg As
Long)</td>
</tr>
<tr>
<td valign="top" width="20%">Action:</td>
<td valign="top" width="80%">This method is
equivalent to <a href="#AddPostMsg">AddPostMsg()</a>.</td>
</tr>
</table>
<p><font size="2"></font> </p>
</blockquote>
<h3><a name="AddPreMsg">AddPreMsg</a></h3>
<blockquote>
<table border="0" cellpadding="2" width="80%">
<tr>
<td valign="top" width="20%">Syntax:</td>
<td valign="top" width="80%">Sub AddPreMsg(nMsg
As Long, bEat As Boolean)</td>
</tr>
<tr>
<td valign="top" width="20%">Action:</td>
<td valign="top" width="80%">Adds a new message
to trap. OnTrap() is called <strong>before</strong>
the original function of the Target hWnd is
called. If bEat is True, the message will be
eaten.</td>
</tr>
<tr>
<td valign="top" width="20%">Parameter:</td>
<td valign="top" width="80%">nMsg is a message
you wish to trap.<br>
bEat indicates whether the message should be
eaten or not.</td>
</tr>
</table>
<p><font size="2"></font> </p>
</blockquote>
<h3><a name="AddPostMsg">AddPostMsg</a></h3>
<blockquote>
<table border="0" cellpadding="2" width="80%">
<tr>
<td valign="top" width="20%">Syntax:</td>
<td valign="top" width="80%">Sub AddPostMsg(nMsg
As Long)</td>
</tr>
<tr>
<td valign="top" width="20%">Action:</td>
<td valign="top" width="80%">Adds a new message
to trap. OnTrap() is called <strong>after</strong>
the original function of the Target hWnd is
processed.</td>
</tr>
<tr>
<td valign="top" width="20%">Parameter:</td>
<td valign="top" width="80%">nMsg is a message
you are interested in to respond.</td>
</tr>
</table>
<p><font size="2"></font> </p>
</blockquote>
<h3><a name="DestroyAll">DestroyAll</a></h3>
<blockquote>
<table border="0" cellpadding="2" width="80%">
<tr>
<td valign="top" width="20%">Syntax:</td>
<td valign="top" width="80%">Sub DestroyAll()</td>
</tr>
<tr>
<td valign="top" width="20%">Action:</td>
<td valign="top" width="80%">Destroys Antenna
properly. This function must be used only in
Visual Basic's Run mode.</td>
</tr>
</table>
<p><font size="2"></font> </p>
</blockquote>
<h3><a name="OnTrap">OnTrap</a> (Event)</h3>
<blockquote>
<table border="0" cellpadding="2" width="80%">
<tr>
<td valign="top" width="20%">Syntax:</td>
<td valign="top" width="80%">Sub OnTrap(hWnd As
Long, nMsg As Long, wParam As Long, lParam As
Long)</td>
</tr>
<tr>
<td valign="top" width="20%">Action:</td>
<td valign="top" width="80%">This event is fired
when Antenna trapped one of the messages.</td>
</tr>
<tr>
<td valign="top" width="20%">Parameter:</td>
<td valign="top" width="80%">hWnd is a Window
handle.<br>
nMsg is the trapped message.<br>
wParam is WPARAM of the message.<br>
lParam is LPARAM of the message.</td>
</tr>
</table>
<p> </p>
</blockquote>
</blockquote>
<hr>
<p align="center">If you have any comments or questions, please
contact <a href="mailto:integer@pair.com">integer@pair.com</a>.</p>
<p align="center">Copyright ⌐ 1998 <a
href="http://www.integer.pair.com/">Integer</a> </p>
</body>
</html>